package cn.gzjp.modules.gas.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

import java.math.BigDecimal;

/**
 * 充值赠送Entity
 * @author zengcp
 * @version 2018-03-15
 */
public class GasRechargeGive extends DataEntity<GasRechargeGive> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 活动名称
	private String stationId;		// 加油站
	private Integer minM;		// 最小金额
	private Integer maxM;		// 最大金额
	private Integer give;		// 赠送金额

	private Integer freeMoney;//赠送金额

	public Integer getFreeMoney() {
		return this.getGive();
	}

	public void setFreeMoney(Integer freeMoney) {
		this.freeMoney = freeMoney;
	}

	public GasRechargeGive() {
		super();
	}

	public GasRechargeGive(String id){
		super(id);
	}

	@Length(min=0, max=255, message="活动名称长度必须介于 0 和 255 之间")
	@ExcelField(title="活动名称", align=2, sort=1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="加油站长度必须介于 0 和 32 之间")
	@ExcelField(title="加油站", align=2, sort=2)
	public String getStationId() {
		return stationId;
	}

	public void setStationId(String stationId) {
		this.stationId = stationId;
	}
	
	@ExcelField(title="最小金额", align=2, sort=3)
	public Integer getMinM() {
		return minM;
	}

	public void setMinM(Integer minM) {
		this.minM = minM;
	}
	
	@ExcelField(title="最大金额", align=2, sort=4)
	public Integer getMaxM() {
		return maxM;
	}

	public void setMaxM(Integer maxM) {
		this.maxM = maxM;
	}
	
	@ExcelField(title="赠送金额", align=2, sort=5)
	public Integer getGive() {
		return give;
	}

	public void setGive(Integer give) {
		this.give = give;
	}
	
}